import 'package:flutter/material.dart';

import 'package:webview_flutter/webview_flutter.dart';

class WebviewpageView extends StatefulWidget {
  @override
  State<WebviewpageView> createState() => _WebviewpageViewState();
}

class _WebviewpageViewState extends State<WebviewpageView> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("webView"),
      ),
      body: WebView(
        initialUrl: "https://cobra.jasoncui.online/workshopData",
        gestureNavigationEnabled: true,
        javascriptMode: JavascriptMode.unrestricted,
        allowsInlineMediaPlayback: true,
        // onWebViewCreated: (WebViewController webViewController) {},
        // onProgress: (int progress) {},
        // onPageFinished: (url) {},
      ),
    );
  }
}
